﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using winformchrome.server.model;

namespace winformchrome.server.controller
{
    class AppointmentController
    {
        public String getList()
        {
            List<AppointmentRecordVO> appointments=new List<AppointmentRecordVO> ();
            for (int i=0;i<10;i++)
            {
                AppointmentRecordVO appointment = new AppointmentRecordVO();
                appointment.Xuhao = "1";
                appointment.Time = "2018-12-30 19:09:24";
                appointment.StaffName = "张三";
                appointments.Add(appointment);
            }
            string rsJson = Newtonsoft.Json.JsonConvert.SerializeObject(appointments);
            Console.WriteLine("输出结果："+rsJson);
            return rsJson;
        }
    }
}
